<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>MVP</title>
<meta name="keywords" content="真功夫" />
<script type="text/javascript">
var userId = 0;
var isNoLogin = parseInt("0");
var cartDisposeUrl = "";
var getpoiDataUrl = "";
var getBaiduDataUrl = "";
var indexUrl = ""; //带清空购物车
var api_url = "http://www.lamp112.com";
var del_address = "";
var pay_submit = "";
var set_password = "";
var couponcodeUseUrl = "";
var iscouponcodeList = 0;

</script>
    <script type="text/javascript" charset="utf-8" src="/Public/demo/ueditor.config.js"></script>

    <script type="text/javascript" charset="utf-8" src="/Public/demo/ueditor.all.min.js"> </script>

    <script type="text/javascript" charset="utf-8" src="/Public/demo/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/Public/Home/Scripts/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/Public/Home/Scripts/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/Public/Home/Scripts/common.js"></script>
<script type="text/javascript" src="/Public/Home/Scripts/jquery.SuperSlide.2.1.1.js"></script>
<script type="text/javascript" src="/Public/Home/Scripts/trimpath-template.js"></script>
<script type="text/javascript" src="/Public/Home/Scripts/dedicated.js"></script>
<script type="text/javascript" src="/Public/Home/Scripts/jquery.js"></script>
<link href="/Public/Home/css/common.css" rel="stylesheet"/>
<link href="/Public/Home/css/basic.css" rel="stylesheet" type="text
/css" />
<link href="/Public/Home/css/css_style.css" rel="stylesheet" type="text/css" />
<style >
    div.c_poidata_box {    position: absolute;  float: none;  margin-left: -100px;  width: 400px;  margin-top: 23px;max-height: 300px;z-index: 999;background: #fff; }
    div.c_poidata_box div{  background-color: #BBB7B7;  float: none;  text-align: center;  height: 30px;  line-height: 30px;  color: #666666;}
    div.c_poidata_box div span {color:red;cursor: pointer;font-weight: bold;float: none;}
    ul.poidata_show {  background: #fff;   width: 400px;     max-height: 300px;min-height:100px;  overflow-y: scroll; overflow-x:hidden;  border: solid 1px #999999;}
    ul.poidata_show li {width:100%;height:20px;cursor: pointer;border-bottom:solid 1px #e0e0e0;float: none;padding-right:10px;  background: none;  line-height: 20px;  position: initial;  margin: 0;  padding: 0;  padding-right: 10px;display: inline-table;padding-left: 5px;}
    ul.poidata_show li span{font-size: 10px;  color: #999999;margin-left:10px;  float: none;  display: initial;  height: auto;}
</style>
</head>
<body>
<div class="topbox">
        <div class="header">
            <a href="/index.php/Home/Index/index.html" class="logo"><img src="<?php echo ($web['0']['logo']); ?>" width="100%" alt=""></a>
            <span class="city_postion"><b>北京市</b><a onclick="select_city(1); _smq.push(['custom', 'home', 'city-change']);"></a></span>
           <?php  if(!isset($_SESSION[username])){ ?>

            <div class="nologin">
                <a href="javascript:;" onclick="$('.layer').show();$('.LogoBox').show(); _smq.push(['custom','home','login']); pyCvt('首页#登录#');">登录</a>
                <a href="javascript:;" onclick="$('.layer').show();$('.Register_Pop').show(); _smq.push(['custom','home','register ']); pyCvt('首页#注册#');">注册</a>
            </div>

          <?php }else{ ?> 
        
            <div class="InloginTxt" style="display:block;width:350px;">
            <a href="<?php echo U('/Home/Ucenter/index');?>" class="login_name"><img src="<?php echo ($usersinfo['pic']); ?>" alt=""><label><?php echo ($_SESSION['username']); ?></label></a>
            <a href="<?php echo U('./Home/Login/logout',array('id'=>$_SESSION['username']));?>" class="red_small_btn">退出</a>
            </div>
        <?php } ?>
        
            <ul class="mainnav">
                <li><a href="<?php echo U('Home/index/index');?>" id="nav1">首页</a></li>
                <li><a href="<?php echo U('Home/Forms/index');?>" id="nav3">订单查看</a></li>
                <li><a href="<?php echo U('Home/Ucenter/index');?>" id="nav4">会员中心</a></li>
                <li><a href="<?php echo U('Home/Help/index');?>" id="nav5">帮助中心</a></li>
            </ul>
        </div>
</div>
<div class="layer"></div>
<div id="headerAllProvince" class="hd_provincelist" >
  <dl>
    <dt>热门区<i></i></dt>
    <dd><a href="javascript:void(0);" istrkcustom="1">朝阳区</a></dd>
    <dd><a href="javascript:void(0);" istrkcustom="1">海淀区</a></dd>
    <dd><a href="javascript:void(0);" istrkcustom="1">昌平区</a></dd>
    <dd><a href="javascript:void(0);" istrkcustom="1">顺义区</a></dd>
    <dd><a href="javascript:void(0);" istrkcustom="1">西城区</a></dd>
    <dd class="city_close">关闭</dd>
  </dl>
  <div class="hd_province_detail">
    <ul>
    
        <li>
        <a href="#">东城区</a><a href="#">朝阳区</a><a href="#">大兴区</a><a href="#">昌平区</a> <a href="#">西城区</a><a href="#">丰台区</a><a href="#">房山区</a><a href="#">门头沟区</a>    
        </li>         
         <li>   
        <a href="#">崇文区</a><a href="#">顺义区</a><a href="#">通州区</a><a href="#">怀柔区</a><a href="#">宣武区</a><a href="#">海淀区</a><a href="#">平谷区</a><a href="#">石景山区</a> 
        </li>         
         <li>
        <a href="#">延庆县</a><a href="#">密云县</a>    
        </li>               
    </ul>
  </div>
</div>
<!--登录弹窗 start-->
<div class="LogoBox" id="box_login_parent">
    <div class="login_title"><span class="close" onclick="avoidLogin();"></span></div>
    <div class="layer_con">
        <ul class="login_list">
        <form action="<?php echo U('./Home/Login/loginin');?>" method='post' id="denglu">
            <li>
                <dl>
                   
                    <dd class="box_username">
                        <b>用户名:</b>
                        <div class="w217_input"><input type="text" name="username" placeholder="用户名为6-16位字符" login="box_login_username"/><span id="user"></span></div>
                    </dd>
                    <dd class="box_pwd">
                        <b>密码&nbsp;：</b>
                        <div class="w217_input"><input type="password" name="password" placeholder="密码为6-16位字符" id="box_login_password"/><span id="pass"></span></div><br><br>
                        <p class="p_w"><a href="/index.php/Home/User/forget.html" class="a_red_line">忘记密码？</a></p>
                    </dd>

                </dl>
                <div class="btn_p_login">
                    <input type="submit" id="login_submit" value="登录"  class="red_btn" />
                </div>
            </li>
        </form>
        </ul>
    </div>
    <div class="logo_bt"></div>
</div>
<span id="id" style="display:none"><?php echo ($id); ?></span>
<script type="text/javascript">
$(function(){
    //检测是否登陆
    $('#nav3').click(function(){
    // alert(333);
        if($('#id').html() == 'true'){
                alert('还没有登录 请先登录');
            return false;
        }
    })
    $('#nav4').click(function(){
    // alert(333);
        if($('#id').html() == 'true'){
                alert('还没有登录 请先登录');
            return false;
        }
    })
    var isusername = false;
    $('#denglu').submit(function(){
            // alert(333)
            $('input[login=box_login_username]').trigger('blur');
            if(isusername){
                // alert(333);
                return true;
            }

            //阻止默认行为
            return false;
        })
    $('input[login=box_login_username]').blur(function(){
        //检测用户名的格式是否ok
        var reg = /^\w{6,18}$/;//6~18位
        //获取用户名的值
        var username = $(this).val();
        //检测
        var res = reg.test(username);
        //用户名的格式

        if(!res){
            // alert(444);
            $('#user').html('用户名格式错误').css('color','red');
            // $(this).css('border','red');
            $(this).addClass('error');
            isusername = false;
        }else{
            //如果ok的话移出error类
            $('#user').removeClass('error').html("√").css('color','green');
          
            isusername = true;
          
        }

    });
})
</script>

<!--登录弹窗 end-->

<!--注册页面弹窗 end-->
<div class="Register_Pop">
    <div class="ResPop_top"><span class="close" onclick="$('.Register_Pop,.layer').hide();"></span></div>
    <div class="layer_con">
        <div class="Restable">
        <form action="<?php echo U('./Home/Reg/checkReg');?>" method='post' name="zhuce">
            <table cellpadding="0" cellspacing="0" class="keycode_form">

                <tr>
                    <th>用户名：</th>
                    <td><div class="w217_input"><input type="text" placeholder="用户名必须为6-16位字符"  name="username"  id="register_name" /><span id="name"></span></div></td>
                </tr>
                 <tr>
                    <th>手机号：</th>
                    <td><div class="w217_input"><input type="text" placeholder="正确的手机号"  name="phone"  id="register_phone" /><span id="phone"></span></div></td>
                </tr>
                <tr>
                    <th>登录密码：</th>
                    <td><div class="w217_input"><input type="password" placeholder="密码必须为6-16位字符"  name="pwd" id="register_pwd" /><span id="pwd"></span></div></td>
                </tr>
                <tr>
                    <th>确认密码：</th>
                    <td><div class="w217_input"><input type="password" placeholder="请再输入一次密码"  name="repwd" id="register_repwd"  /><span id="repwd"></span></div></td>
                </tr>
                <tr>
                    <th>验证码：</th>
                    <td><span class="w122_input" style="display:inline-block"><input type="text" class="text" value="" name="vcode"  placeholder="" id="verify_code"/></span><span style="vertical-align:middle"><img src="<?php echo U('./Home/Public/createVcode');?>" onclick="this.src = this.src + '?' + Math.random()"/></span>
                    </td>
                </tr>
                <tr>
                    <th width="98">&nbsp;</th>
                    <td>                       
                        <p><label><input type="checkbox" name="rule" value="" checked="checked" id="register_member_rule" />我已阅读并接受<a href="/index.php/Home/Index/memberagreement.html" target="_blank" class="a_red_line">《MVP会员协议》</a></label></p>
                    </td>
                </tr>
                <tr>
                    <th>&nbsp;</th>
                    <td><input type="submit" id="register_submit" value="注册" class="red_lang_btn keycode" /></td>
                </tr>

                <tr>
                    <th colspan="2" style="text-align:left">温馨提示：会员系统目前仅支持北京地区，其他地区推出时间将以官网发布消息为准，感谢您的谅解。</th>
                </tr>
            </table>
        </form>
        </div>
        <div class="ResTips">
            <p>欢迎您，注册成为MVP会员！</p>
            <div class="Res_btn"><span class="red_lang_btn" onclick="window.location.href='/index.php/Home/Index/index.html'">立即订餐</span></div>
        </div>
    </div>
    <div class="ResPop_bt"></div>
</div>
<div class="wenxin_img">
    <div class="wenxin_top"><span class="close" onclick="$('.wenxin_img,.layer').hide();"></span></div>
    <p><img src="/Public/Home/images/weiX1.png" width="200px;" /></p>
    <p>MVP微信扫描关注</p>
</div>
<script type="text/javascript">
//注册验证开始
    //检测变量
    var CUSER = false;
    var CPASS = false;
    var CREPASS = false;   
    var CPHONE = false;
//提交时验证
$(function(){
    $('form[name=zhuce]').submit(function(){
        //脚本中触发丧失焦点事件
        // console.log(CUSER);
        // console.log(CPASS);
        // console.log(CREPASS);
        // console.log(CPHONE);
        $('input[id=register_name]').trigger('blur');
        $('input[id=register_phone]').trigger('blur');
        $('input[id=register_pwd]').trigger('blur');
        $('input[id=register_repwd]').trigger('blur');
        if(CUSER && CPASS && CREPASS && CPHONE){
            return true;
        }
        // alert(333);
        //阻止默认行为
        return false;
    })
//验证用户名 发送ajax
    $('#register_name').blur(function(){
            //检测用户名的格式是否ok
            var reg = /^\w{6,18}$/;//6~18位
            //获取用户名的值
            var username = $(this).val();
            //检测   exec
            var res = reg.test(username);
            //用户名的格式i错误
            if(!res){
                $('#name').html('用户名格式错误').css('color','red');
                // $(this).css('border','red');
                $(this).addClass('error');
                return false;
            }else{
        //如果ok的话移出error类
            $('#name').removeClass('error').html("√").css('color','green');
            }
            
            //发送ajax检测用户名是否已经存在
           $.post('<?php echo U("Home/Reg/uajax");?>',{'username':username},function(data){
                         
                            if(data != 1){
                                // alert(1);
                              $('#name').html('用户名已存在').css('color','red');
                              return false;
                            }

            });
           CUSER = true;
        });
 //验证手机号
 $('#register_phone').blur(function(){
            //检测手机号的格式是否ok
            var reg = /^1\d{10}$/;
            //获取手机号的值
            var phone = $(this).val();
            //检测   exec
            var res = reg.test(phone);
            //手机号的格式
            if(!res){
                $('#phone').html('手机号格式错误').css('color','red');
                // $(this).css('border','red');
                $(this).addClass('error');
                return false;
            }else{
        //如果ok的话移出error类
            $('#phone').removeClass('error').html("√").css('color','green');
            }
            
            //发送ajax检测手机号是否已经存在
           $.post('<?php echo U("Home/Reg/pajax");?>',{'phone':phone},function(data){
                         
                            if(data != 1){
                                // alert(1);
                              $('#phone').html('手机号已存在').css('color','red');
                              return false;
                            }
            });
        CPHONE = true;
        });
//密码验证
$('#register_pwd').blur(function(){
    var reg = /^\S{6,18}$/;//密码正则验证
    var pwd = $('#register_pwd').val();
     if(!reg.test(pwd)) {
         $('#pwd').html('密码格式错误').css('color','red');
            $(this).addClass('error');
            return false;
        }else{
            $('#pwd').removeClass('error').html("√").css('color','green');
           CPASS = true;
        }
    });
//确认密码验证
$('#register_repwd').blur(function(){
    var pwd = $('#register_pwd').val();
    var repwd = $('#register_repwd').val();

    if(repwd.length==0) {
        $('#repwd').html('确认密码不能为空').css('color','red');
        $(this).addClass('error');
        return false;
    }else{
        $('#repwd').removeClass('error').html("√");
    }
    if(pwd!=repwd) {
        $('#repwd').html('两次输入的密码不一样').css('color','red');
        $(this).addClass('error');
        return false;
    }else{
        $('#repwd').removeClass('error').html("√").css('color','green');
       CREPASS = true;
    }

});
//验证码验证
    $('#register_submit').click(function(){
        var verify = $('#verify_code').val();
        if(verify.length==0) {
            alert('请输入验证码');
            return false;
        }
      



})
 

  
        
      
      
    });
    

</script>




<div class="ShopContain">
	<div class="shopStep">
		<span class="Step01">浏览餐单<b>1</b></span>
		<span class="Step02">确认订餐内容<b>2</b></span>
		<span class="Step03 aon">结算并提交订单<b>3</b></span>
	</div>
<!--判断是否激活-->
     <div class="shoporder_tips">
	<!--判断是否为货到付款-->
	    <h1 class="st_tips"><span>感谢您，订单提交成功！</span></h1>
		<p>您的餐品预计在<span><?php echo date("Y-m-d H:i:s",($forminfo['ftime']+(45*60)));?></span>送达</p>
		<p>货到需付款<span><?php echo ($forminfo['fprice']); ?></span>元</p>
    </div>
    <div class="shop-Order-detailsBox">
		<div class="shop-Order-details">
			<div class="order-No_tips">
				<b class="shop_pbtn">订单详情<i class="up"></i></b>
				<span>订单号：<?php echo ($forminfo['formnumber']); ?></span>
				<span>下单时间：<?php echo date("Y-m-d H:i:s",$forminfo['ftime']);?></span>
			</div>    		
			<ul class="order-details-list">
				<li class="lione">
					<p>送餐地址：<?php echo ($forminfo['address']); ?></p>
					<p>联系人：<?php echo ($forminfo['username']); ?></p>
					<p>联系电话：<?php echo ($forminfo['phone']); ?></p>
				</li>
				<li class="litwo">
					<p>订单金额：<b>￥<?php echo ($forminfo['fprice']); ?></b></p>
					<p>支付方式：货到付款</p>
				</li>
				<li class="lithree">
					<p><strong>订单状态：已下单</strong></p>
					<p>您的餐品预计在<?php echo date("Y-m-d H:i:s",($forminfo['ftime']+(45*60)));?>送达</p>
				</li>
			</ul>
    		<div style="display: block;" class="order-details-box">
			<div class="order-details-Top"><span>订单详情</span></div>
				<div class="order-details-Cartcont">
					
					<table class="cart_table" cellpadding="0" cellspacing="0" width="100%">
					
						<tbody>
							<tr>
								<th>品名</th>
								<th>单价（元）</th>
								<th width="80">数量</th>
								<th>优惠方式</th>
								<th class="nobg" width="110">备注</th>
							</tr>
							
							<?php if(is_array($foodsforminfo)): foreach($foodsforminfo as $key=>$vo): ?><tr>
									<td>
										<div class="car_img"><img src="<?php echo ($vo['fpic']); ?>"><i></i></div>
										<span class="cart_p_name"><?php echo ($vo['name']); ?></span>
									</td>
									
									<td class="ta_center fa_15">￥<?php echo ($vo['price']-$vo['sell']); ?></td>
									<td class="ta_center"><?php echo ($vo['number']); ?></td>
									<td class="ta_center"><?php if($vo['sell'] == 0): ?>无优惠<?php else: ?>已优惠 <?php echo ($vo['sell']*$vo['number']); endif; ?></td>
									<td class="ta_center"><?php if(empty($forminfo['ask'])): ?>无<?php else: ?> <?php echo ($forminfo['ask']); endif; ?></td>
								</tr><?php endforeach; endif; ?>

						</tbody>
					</table>
					
				</div>
				<div class="order-details-bt"></div>
			</div> 
		</div>
	</div>
</div>
<script type="text/javascript">
</script>
<script type="text/javascript" src="/Public/Home/Scripts/jquery-1.4.2.min.js"></script>

<script type="text/javascript" src="/Public/Home/Scripts/jquery-1.8.3.min.js"></script>

<script type="text/javascript" src="/Public/Home/Scripts/jquery.SuperSlide.2.1.1.js"></script>
<div class="btline"></div>
<div class="footer">
    <div class="er_img">
        <img src="/Public/Home/images/er_img.jpg" />
        <b>扫描下载订餐APP</b>
    </div>
    <span class="bt_logo"><img src="/Public/Home/images/bt_logo.jpg" /></span>
    <ul class="bt_link">
		<?php if(is_array($info)): foreach($info as $key=>$vo): ?><li><a href="http://<?php echo ($vo['url']); ?>" target="_blank"><img src="<?php echo ($vo['friendpic']); ?>" style="width:30px;height:30px;border-radius: 50%;"/><span><?php echo ($vo['title']); ?></span></a></li><?php endforeach; endif; ?>
    </ul>
    <div class="bt_p">
    	<p class="p_a"><a href="<?php echo U('./Home/Us/us');?>">关于MVP</a>|<a href="<?php echo U('./Home/Law/law');?>">法律条款</a>|<a href="<?php echo U('./Home/Contact/contact');?>">联系我们</a><p>
    	<p><?php echo ($web['0']['icpno']); ?></p>
    	<p>手机号:<?php echo ($web['0']['webphone']); ?>&nbsp;&nbsp;&nbsp;&nbsp;邮箱:<?php echo ($web['0']['webemail']); ?></p>
    </div>
</div>
<script type="text/javascript">
//回车自动提交
$('.keycode_form').find('input').keyup(function(event){
    if(event.keyCode===13){
		
         $(this).parentsUntil(".keycode_form").find(".keycode").click();
    }
});
$(document).keyup(function(event){
    if(event.keyCode===13){
		if($(".collection_click").length>0){
            $(".collection_click").click();
        }
    }
});
//回车搜索
$("#search_key").keydown(function(e){
		var key = $(this).val();
		//如果按ctrl和enter键
		//if(e.ctrlKey && e.which == 13 || e.which == 10) {
			//chat_submit();
		//如果按shift和enter键
        //} else if (e.shiftKey && e.which==13 || e.which == 10) {
			//chat_submit();
		if ( e.which == 13){
			productSearch();
		}
	}); 
	

	$(".addr_none").show();
	$(".addr_first").show();


	$(function  () {
		$("h2[mclassId=''][name!='promenu_one']").click();
		//$(".h2_z").click();
		//$(".h2_z").next().find("dd a:first").addClass("aon");
		//判断购物车是否有产品
		var productId = getCookie("productIds");
		if(productId){
			$(".car_close").click();//打开购物车
		}else{
			$(".car_open").click(); //关闭购物车
		}
		$("a[rel='go_proinfo']").click(function () {
			var productId = $(this).attr("productId");
			var mclassId = $(this).attr("mclassId");
			var startTime = $(this).attr("startTime");
			var endTime = $(this).attr("endTime");
			var endDate = $(this).attr("endDate");
			var startDate = $(this).attr("startDate");
			//请求详情数据
			$.ajax({
				url:"/index.php/Home/Product/getinfo.html",
				type:'post',
				dataType:"json",
				data:"productId="+productId+"&mclassId="+mclassId,
				global:false,
				success:function(data){
					if(data.code == 0){
						//判断是否收藏
					   if(data.data.isCollection){
    						$("#a_fav").removeClass("a_fav");
    						$("#a_fav").addClass("a_fav_ed");
    						$("#a_fav").unbind();
						}
						
						//判断是否过时
						if(data.data.isshow != 1){
    						$("#red_lang_btn").removeClass("red_lang_btn");
    						$("#red_lang_btn").addClass("red_lang_btn_ed");
    						$("#red_lang_btn").unbind();
    						$("#red_lang_btn").removeAttr("onclick");
						}
						
    						$("#productImg").attr("src","http://api.zkungfu.com:8080"+data.data.imageurl);
    						$("#productName").html(data.data.name);
    						$(".star_red").removeClass("start_5");
    						$(".star_red").addClass("start_"+data.data.levels);
    						$("#productproductDetailded").html("<b>"+data.data.productDetailded+"</b>");
    						$("#productnutritionPropose").html("<p>"+data.data.nutritionPropose+"</p>");
    						$("#productTrueprice").html("<samp>￥</samp><b>"+data.data.truepriceEx1+"</b>."+data.data.truepriceEx2);
    						$("#proTrueprice").html(data.data.trueprice);
    						$("#proId").html(data.data.productId);

						if(!$("#startTimeFont").html()){
							$("#startTimeFont").html(startTime);
						}
						if(!$("#endTimeFont").html()){
							$("#endTimeFont").html(endTime);
						}
						if(!$("#endDateFont").html()){
							if(endDate){
								$("#endDateFont").html(endDate.substr(0,10));
							}
						}
						if(!$("#startDateFont").html()){
							if(startDate){
								$("#startDateFont").html(startDate.substr(0,10));
							}
						}
						
    						$("#a_fav").attr("productId", data.data.productId);
    						$("#a_fav").attr("mclassId", data.data.mclassId);
    						//TrimPath.processDOMTemplate("productInfoDiv", data.data);
    						$(".layer").height($(window).height());
    						$(".layer").show();
    						$(".proInfoBox").show();
    						
					}
				}
			});
			
		});
	
	
	$("#a_fav").click(function(){
		//检查用户登录
		if(userId<=0){
			$(".user_add_address_span").click();
			return false;
		}
		
		var productId = $(this).attr("productId");
		var mclassId = $(this).attr("mclassId");
		
		$.ajax({
			url:"/index.php/Home/Product/collection.html",
			type:'post',
			dataType:"json",
			data:"productId="+productId+"&mclassId="+mclassId,
			global:false,
			success:function(data){
				if(data.code==0){
					$("#a_fav").removeClass("a_fav").addClass("a_fav_ed");
					$("#a_fav").unbind();
					//更改收藏状态	
				}else{
					alert("收藏失败了");
				}
			}
		});
	});
	
	});
	
/*免注册购物*/
function avoidLogin(){
	pyCvt('未登录订餐#免登录订餐#');
	
	$('.LogoBox').hide();
	$('.layer').hide();
	_smq.push(['custom','notlogin','orderdirect']);
	$.ajax({
			url:"/index.php/Home/User/avoidlogin.html",
			type:'post',
			dataType:"json",
			data:"",
			global:false,
			success:function(data){
				if(data.code==0){
					isNoLogin=1;
				}
			}
		});
}

/*购特车地址变化*/
$(":radio[name='select_addressId']").click(function(){
	var addrId = $(this).val();
	var addrName = $("#select_addressName"+addrId).html();
	var addrressId = $("#select_addressId"+addrId).val();
	$("#selected_addr").attr("addrId", addrId);
	$("#selected_addrname").html(addrName);
	$("#selected_addressId").val(addrId);
	$("#selected_addrId").val(addrressId);
	
	$(".addr_dl").hide();
	
	cartDispose();
});


var _smq = _smq || [];
_smq.push(['_setAccount', '4096b7a', new Date()]);
_smq.push(['pageview']);

(function() {
var sm = document.createElement('script'); sm.type = 'text/javascript'; sm.async = true;
//sm.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdnmaster.com/sitemaster/collect.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sm, s);
})();

var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  //hm.src = "//hm.baidu.com/hm.js?869e33786ffc8e7e0fb972b8b5df0282";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W7BBTG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

<!-- End Google Tag Manager -->
<script type="text/javascript">
var _py = _py || [];
_py.push(['a', 'ft.6W.pTNB6KEt49h283tABaTER0']);
_py.push(['domain','stats.ipinyou.com']);
_py.push(['e','']);
-function(d) {
	var s = d.createElement('script'),
	e = d.body.getElementsByTagName('script')[0]; e.parentNode.insertBefore(s, e),
	f = 'https:' == location.protocol;
	//s.src = (f ? 'https' : 'http') + '://'+(f?'fm.ipinyou.com':'fm.p0y.cn')+'/j/adv.js';
}(document);
</script>
<noscript><img src="//stats.ipinyou.com/adv.gif?a=ft.6W.pTNB6KEt49h283tABaTER0&e=" style="display:none;"/></noscript>

<script>
// _type : 转化按钮名称（例如：登陆，注册）等按钮
function pyCvt(_type){
	var w=window,d=document,e=encodeURIComponent;
	var b=location.href,c=d.referrer,f,g=d.cookie,h=g.match(/(^|;)\s*ipycookie=([^;]*)/),i=g.match(/(^|;)\s*ipysession=([^;]*)/);
	if (w.parent!=w){f=b;b=c;c=f;};u='//stats.ipinyou.com/cvt?a='+e('ft.Bo.IGrpnJaGNS8dEdTnpT-EC0')+'&ProductList='+e(_type)+'&c='+e(h?h[2]:'')+'&s='+e(i?i[2].match(/jump\%3D(\d+)/)[1]:'')+'&u='+e(b)+'&r='+e(c)+'&rd='+(new Date()).getTime()+'&e=';
	(new Image()).src=u;
}
</script>


<!--
参数说明
_orderno：注册用户ID，需要替换为注册用户的ID值
-->
<script>
function pyRegisterCvt(_orderno){
	var w=window,d=document,e=encodeURIComponent;
	var b=location.href,c=d.referrer,f,g=d.cookie,h=g.match(/(^|;)\s*ipycookie=([^;]*)/),i=g.match(/(^|;)\s*ipysession=([^;]*)/);
	if (w.parent!=w){f=b;b=c;c=f;};u='//stats.ipinyou.com/cvt?a='+e('ft.Mo.bXdDStX_enDkGEj7jSVA4X')+'&c='+e(h?h[2]:'')+'&s='+e(i?i[2].match(/jump\%3D(\d+)/)[1]:'')+'&u='+e(b)+'&r='+e(c)+'&rd='+(new Date()).getTime()+'&OrderNo='+e(_orderno)+'&e=';
	(new Image()).src=u;
}
</script>

</body>
</html>
<script type="text/javascript">
    jQuery("#mainnav1").attr("class", "aon");
    jQuery(".BannerBox").slide({ mainCell: ".BannerList ul", effect: "fold", autoPlay: "true", interTime: "6000", delayTime:"1000",mouseOverStop: "false" });	
</script>